package com.bestv.search.common.dao;

import com.bestv.search.common.model.AccessLog;

import java.util.Date;
import java.util.List;

public interface AccessLogDao extends GenericDao<AccessLog, Long> {

    AccessLog get(int type, Date accessLowerTime, String siteCode, int serverNo);

    List<AccessLog> get(Date accessLowerTime, Date accessUpperTime);

    List<AccessLog> get(Date accessLowerTime, Date accessUpperTime, int[] types, int serverNo);

    List<AccessLog> getByMonth(Date startMonth, Date endMonth, int[] types);

    List<AccessLog> getByDate(Date startDate, Date endDate, int[] types);
}
